<template>
	<view>
		<CustomText v-for="(item, index) in newsList" :key="index" :title="item.title" :isTop="item.isTop"
			:author="item.author" :comments="item.comments" :time="item.time"></CustomText>
	</view>
</template>

<script>
	import CustomText from "../../../components/cardViewText.vue"
	export default {
		components: {
			CustomText
		},
		data() {
			return {
				newsList: [{
						title: "全球气候变化大会在巴黎开幕，195国参与协商",
						isTop: true,
						author: "国际新闻网",
						comments: 125,
						time: "2025.10.28"
					},
					{
						title: "我国成功发射第56颗北斗导航卫星，系统精度再提升",
						isTop: false,
						author: "科技日报",
						comments: 892,
						time: "2025.10.27"
					},
					{
						title: "2025年全国粮食总产量预计达1.39万亿斤，再创历史新高",
						isTop: false,
						author: "农业农村部官网",
						comments: 537,
						time: "2025.10.26"
					},
					{
						title: "新版《机动车驾驶证申领和使用规定》11月1日起实施",
						isTop: false,
						author: "公安部交通管理局",
						comments: 326,
						time: "2025.10.25"
					},
					{
						title: "首届全国青少年人工智能创新大赛在深圳落幕",
						isTop: false,
						author: "中国青年报",
						comments: 222,
						time: "2025.10.24"
					}
				]
			}
		}
	}
</script>

<style>

</style>